package hardfood.cnblogs;

import org.bukkit.configuration.file.FileConfiguration;

public final class ConfigReader {
    public static FileConfiguration config = RunSun.instance.getConfig();
    // 由于三个方法都要使用，我们将这个变量抽取出来到最外层
    public static  int GetTimeSpeed(){
        try{
            int data=0;
            data = config.getInt("TimeSpeed",200);

            return  data;
        }catch (Exception e) {
            return 200;
        }
    }
    public static boolean PlayerSpeedAdd(){
        try{
            boolean data=false;
            data = config.getBoolean("PlayerSpeedAdd",false);
            return  data;
        }catch (Exception e) {
            return false;
        }
    }
}